function gitbup
    set branch_name (git branch 2> /dev/null | grep \* | sed 's/* //')
    if [ "$branch_name" = "master" ]
        echo "is master!!!"
        return
    end
    git pull --rebase origin $branch_name
end
